QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11
CONFIG += utf8_source

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    csppedplaylistdlg.cpp \
    cvolumesliderdlg.cpp \
    expandbutton.cpp \
    main.cpp \
    mainwindow.cpp \
    mypushbutton.cpp \
    sdlcondmutex.cpp \
    sonic.c \
    speedplaybutton.cpp \
    videoplayer.cpp \
    videoplayer_audio.cpp \
    videoplayer_video.cpp \
    videoslider.cpp \
    videowidget.cpp \
    volumebutton.cpp

HEADERS += \
    csppedplaylistdlg.h \
    cvolumesliderdlg.h \
    expandbutton.h \
    mainwindow.h \
    mypushbutton.h \
    sdlcondmutex.h \
    sonic.h \
    speedplaybutton.h \
    videoplayer.h \
    videoslider.h \
    videowidget.h \
    volumebutton.h

FORMS += \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

msvc {
    QMAKE_CFLAGS += /utf-8
    QMAKE_CXXFLAGS += /utf-8
}

FFMPEG_DIR = $$PWD/sdk/ffmpeg
SDL_DIR = $$PWD/sdk/SDL2

INCLUDEPATH += $${FFMPEG_DIR}/include
INCLUDEPATH += $${SDL_DIR}/include

LIBS += -L$${FFMPEG_DIR}/lib \
        -lavcodec \
        -lavformat \
        -lavutil \
        -lswresample \
        -lswscale

LIBS += -L$${SDL_DIR}/lib \
        -lSDL2

Debug:DESTDIR = $$PWD/bin
Release:DESTDIR = $$PWD/bin

RESOURCES += \
    res.qrc
